Provide for negative PIDs on MS Windows
authorPo Lu <luangruo@yahoo.com>
Tue, 11 Jun 2024 02:04:16 +0000 (10:04 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 11 Jun 2024 02:05:14 +0000 (10:05 +0800)
commit9e96fbfd855bf0acc005b2b0973c2a9aef7cdcd2
tree32dd8d123af586683cec9636028c637f26eaaa3c
parent5a576069fcd803a6a5260a2da8ce0862be982eb4
Provide for negative PIDs on MS Windows

* src/filelock.c (pid_t, getpid_for_lock, pidintmax, EPRIdMAX):
New macros; define to unsigned long or corresponding values if
WINDOWSNT.
(lock_file_1, current_lock_owner): Replace intmax_t, getpid,
pid_t and the like with the aforementioned macros.  (bug#71477)
src/filelock.c